package cn.topevery.garden.entity.po;

import cn.topevery.garden.framework.base.BaseEntity;
import com.alibaba.fastjson.annotation.JSONField;
import hw.topevery.framework.annotation.DbTable;
import hw.topevery.framework.annotation.DbTableField;
import hw.topevery.framework.enums.DbTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 过程日志信息表
 *
 * @author code-generate
 * @date 2022-02-15
 */
@Data
@DbTable(tableName = "t_process_log")
public class ProcessLog extends BaseEntity {
        /**
     * 项目id
     */
    @DbTableField(columnName = "c_project_id", dbType = DbTypeEnum.VARCHAR)
    public Integer projectId ;

    /**
     * 时间
     */
    @DbTableField(columnName = "c_time", dbType = DbTypeEnum.TIMESTAMP)
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    public LocalDateTime time ;

    /**
     * 描述
     */
    @DbTableField(columnName = "c_desc", dbType = DbTypeEnum.VARCHAR)
    public String desc ;

    /**
     * 备注
     */
    @DbTableField(columnName = "c_remark", dbType = DbTypeEnum.VARCHAR)
    public String remark ;

    /**
     * 附件
     */
    @DbTableField(columnName = "c_file_url", dbType = DbTypeEnum.VARCHAR)
    public String fileUrl ;

    /**
     * 记录人
     */
    @DbTableField(columnName = "c_note_taker", dbType = DbTypeEnum.VARCHAR)
    public String noteTaker ;

    @ApiModelProperty(value = "附件")
    private List<ProcessLogFile> fileList;
}
